<template>
  <div class="dashboard-container">
    <!--<div class="dashboard-text">工银诚e金</div>-->
    <div class="logo">
      <h2>工银诚e金</h2>
      <h3>{{isDevelop?'欢迎登录工银诚意金开发商管理系统':'欢迎登录工银诚意金后台管理系统'}}</h3>
    </div>
  </div>
</template>

<script>
  import {mapGetters} from 'vuex'

  export default {
    name: 'homePage',
    data() {
      return {
        isDevelop: localStorage.getItem('role') == 'developer'
      }
    },
    computed: {
      ...mapGetters([
        'name'
      ])
    }
  }
</script>

<style lang="scss" scoped>
  .dashboard {
    &-container {
      margin: 30px;
    }
    &-text {
      font-size: 30px;
      line-height: 46px;
    }
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%);
    width: 300px;
    height: 220px;
    margin-top: -110px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
</style>
